<template>
  <h1>{{msesetd}}</h1>
  <button @click="btn">改变mseset的值</button>
</template>

<script>
// document.querySelector("h1").textContent="kkkkk"
import myDevVue from "./components/myDev.vue";
export default {
  name: "App",
  myDevVue,
  data() {
    return {
      num: 0,
      mseset: "hello world",
    };
  },
 computed: {
   _msesetd: function() {
     console.log("computed调用了");
     return this.mseset.split("").reverse().join("");
   },
   get msesetd() {
     return this._msesetd;
   },
  },
  methods: {
    btn: function () {
     this.mseset="ljf;wgjrjqgb"
    },
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  width: 200px;
  height: 200px;
  display: block;
}
</style>
